package cn.duckerkj.base.exception;

import cn.duckerkj.base.enums.ResultEnums;

public class MyException extends RuntimeException{
	private Integer code;

    public MyException(ResultEnums resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
